package cn.yza.Kotlin.test

/**
@author Honglixi
@create 2022-06-01 21:56
 */
fun main(args: Array<String>) {
    var str = "Hello World! Hello World!"
    println(str.replace("World", "Kotlin"))
    println(str.replaceFirst("World", "Kotlin"))
    println(str.replaceBefore("!", "Kotlin"))
    println(str.replaceAfter("Hello ", "Kotlin!"))

}